package com.feonix.common.util.xml;

import java.util.HashMap;
import java.util.Map;

public class XmlNode {
	private String value;
	private String content;
	private String name;
	private String path;
	private Map<String, String> attrs = new HashMap<String, String>();

	public String getValue() {
		return this.value;
	}

	public String getName() {
		return this.name;
	}

	public String getPath() {
		return this.path;
	}

	public String getAttr(String attr) {
		return this.attrs.get(attr);
	}

	public void setValue(String value) {
		this.value = value;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public void putAttr(String key, String value) {
		this.attrs.put(key, value);
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String toString() {
		return "path:" + this.path + "\t name:" + this.name + "\t value:" + this.value + "\t content:" + this.content
				+ "\t attrs:" + this.attrs;
	}
}
